package com.micheal.pattern.adapter.passport;

import com.micheal.pattern.adapter.ResultMsg;
import com.micheal.pattern.adapter.User;

/**
 * Created by micheal on 2018/4/10/0010.
 */
public class LoginService {

    /**
     * 登录
     * @param username
     * @param password
     * @return
     */
    public ResultMsg login(String username, String password) {
        return new ResultMsg("200", "登录成功！", new User(username,password));
    }

    /**
     * 注册
     * @param username
     * @param password
     * @return
     */
    public ResultMsg register(String username, String password){
        return new ResultMsg("200", "登录成功！", new User(username,password));
    }

}
